using System.ComponentModel;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.SharePoint.WebControls;

namespace zevenseas.Community.Web.UI.WebControls
{
    public class SPBoundChoiceField : SPBoundField
    {
        protected override void ChildControlDataBinding(Control childControl, object dataItem, MemberDescriptor dataFieldPropertyDescriptor)
        {
            string value = GetPropertyValue(dataItem, dataFieldPropertyDescriptor.Name);
            Label label = (Label)childControl;
            label.Text = value.ToString();

        }
        protected override Control GetChildControlInstance()
        {
            return new Label();
        }
    }
}